那是因为没
有加认证,不
加认证的意思就是允许任何人访问的。添
加认证
有两种方式:registry 配置中
加入认证:https://docs.docker.com/registry/configuration/ /auth auth: token: realm: token-realm service: token-service issuer: registry-token-issuer rootcertbundle: /root/certs/bundle htpasswd: realm: basic-realm path: /path/to/htpasswd 前端架设nginx 进行认证:https://docs.docker.com/registry/recipes/nginx/ location /v2/ ... authbasic registry realm authbasicuserfile /etc/nginx/conf.d/nginx.htpasswd ...